import {createRoot} from 'react-dom/client'
import './index.scss'
import store from "@/store/index.jsx";
import {RouterProvider} from "react-router-dom";
import router from "@/router/index.jsx";
import {Provider} from "react-redux";
import zhCn from 'antd/locale/zh_CN.js'
import 'dayjs/locale/zh-cn.js'
import {ConfigProvider} from "antd";
import {DevSupport} from "@react-buddy/ide-toolbox";
import {ComponentPreviews, useInitial} from "@/dev/index.js";


createRoot(document.getElementById('root')).render(
    <ConfigProvider locale={zhCn}>
        <Provider store={store}>
            <DevSupport ComponentPreviews={ComponentPreviews}
                        useInitialHook={useInitial}
            >
                <RouterProvider router={router}/>
            </DevSupport>
        </Provider>
    </ConfigProvider>
)
